using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RBAC.Domain;

namespace RBAC.Domain.WarehouseManagement
{
    /// <summary>
    /// 日志记录表
    /// </summary>
    [Table("LoggingTable")]
    public class LoggingTable
    {
        /// <summary>
        /// 日志ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int LoggingId {  get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId {  get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName {  get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string OperationContent {  get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
